package com.mall.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FadebackExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FadebackExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFadeback_idIsNull() {
            addCriterion("fadeback_id is null");
            return (Criteria) this;
        }

        public Criteria andFadeback_idIsNotNull() {
            addCriterion("fadeback_id is not null");
            return (Criteria) this;
        }

        public Criteria andFadeback_idEqualTo(Integer value) {
            addCriterion("fadeback_id =", value, "fadeback_id");
            return (Criteria) this;
        }

        public Criteria andFadeback_idNotEqualTo(Integer value) {
            addCriterion("fadeback_id <>", value, "fadeback_id");
            return (Criteria) this;
        }

        public Criteria andFadeback_idGreaterThan(Integer value) {
            addCriterion("fadeback_id >", value, "fadeback_id");
            return (Criteria) this;
        }

        public Criteria andFadeback_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("fadeback_id >=", value, "fadeback_id");
            return (Criteria) this;
        }

        public Criteria andFadeback_idLessThan(Integer value) {
            addCriterion("fadeback_id <", value, "fadeback_id");
            return (Criteria) this;
        }

        public Criteria andFadeback_idLessThanOrEqualTo(Integer value) {
            addCriterion("fadeback_id <=", value, "fadeback_id");
            return (Criteria) this;
        }

        public Criteria andFadeback_idIn(List<Integer> values) {
            addCriterion("fadeback_id in", values, "fadeback_id");
            return (Criteria) this;
        }

        public Criteria andFadeback_idNotIn(List<Integer> values) {
            addCriterion("fadeback_id not in", values, "fadeback_id");
            return (Criteria) this;
        }

        public Criteria andFadeback_idBetween(Integer value1, Integer value2) {
            addCriterion("fadeback_id between", value1, value2, "fadeback_id");
            return (Criteria) this;
        }

        public Criteria andFadeback_idNotBetween(Integer value1, Integer value2) {
            addCriterion("fadeback_id not between", value1, value2, "fadeback_id");
            return (Criteria) this;
        }

        public Criteria andMember_idIsNull() {
            addCriterion("member_id is null");
            return (Criteria) this;
        }

        public Criteria andMember_idIsNotNull() {
            addCriterion("member_id is not null");
            return (Criteria) this;
        }

        public Criteria andMember_idEqualTo(Integer value) {
            addCriterion("member_id =", value, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idNotEqualTo(Integer value) {
            addCriterion("member_id <>", value, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idGreaterThan(Integer value) {
            addCriterion("member_id >", value, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("member_id >=", value, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idLessThan(Integer value) {
            addCriterion("member_id <", value, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idLessThanOrEqualTo(Integer value) {
            addCriterion("member_id <=", value, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idIn(List<Integer> values) {
            addCriterion("member_id in", values, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idNotIn(List<Integer> values) {
            addCriterion("member_id not in", values, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idBetween(Integer value1, Integer value2) {
            addCriterion("member_id between", value1, value2, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idNotBetween(Integer value1, Integer value2) {
            addCriterion("member_id not between", value1, value2, "member_id");
            return (Criteria) this;
        }

        public Criteria andInfoIsNull() {
            addCriterion("info is null");
            return (Criteria) this;
        }

        public Criteria andInfoIsNotNull() {
            addCriterion("info is not null");
            return (Criteria) this;
        }

        public Criteria andInfoEqualTo(String value) {
            addCriterion("info =", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoNotEqualTo(String value) {
            addCriterion("info <>", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoGreaterThan(String value) {
            addCriterion("info >", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoGreaterThanOrEqualTo(String value) {
            addCriterion("info >=", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoLessThan(String value) {
            addCriterion("info <", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoLessThanOrEqualTo(String value) {
            addCriterion("info <=", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoLike(String value) {
            addCriterion("info like", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoNotLike(String value) {
            addCriterion("info not like", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoIn(List<String> values) {
            addCriterion("info in", values, "info");
            return (Criteria) this;
        }

        public Criteria andInfoNotIn(List<String> values) {
            addCriterion("info not in", values, "info");
            return (Criteria) this;
        }

        public Criteria andInfoBetween(String value1, String value2) {
            addCriterion("info between", value1, value2, "info");
            return (Criteria) this;
        }

        public Criteria andInfoNotBetween(String value1, String value2) {
            addCriterion("info not between", value1, value2, "info");
            return (Criteria) this;
        }

        public Criteria andDate_receivedIsNull() {
            addCriterion("date_received is null");
            return (Criteria) this;
        }

        public Criteria andDate_receivedIsNotNull() {
            addCriterion("date_received is not null");
            return (Criteria) this;
        }

        public Criteria andDate_receivedEqualTo(Date value) {
            addCriterion("date_received =", value, "date_received");
            return (Criteria) this;
        }

        public Criteria andDate_receivedNotEqualTo(Date value) {
            addCriterion("date_received <>", value, "date_received");
            return (Criteria) this;
        }

        public Criteria andDate_receivedGreaterThan(Date value) {
            addCriterion("date_received >", value, "date_received");
            return (Criteria) this;
        }

        public Criteria andDate_receivedGreaterThanOrEqualTo(Date value) {
            addCriterion("date_received >=", value, "date_received");
            return (Criteria) this;
        }

        public Criteria andDate_receivedLessThan(Date value) {
            addCriterion("date_received <", value, "date_received");
            return (Criteria) this;
        }

        public Criteria andDate_receivedLessThanOrEqualTo(Date value) {
            addCriterion("date_received <=", value, "date_received");
            return (Criteria) this;
        }

        public Criteria andDate_receivedIn(List<Date> values) {
            addCriterion("date_received in", values, "date_received");
            return (Criteria) this;
        }

        public Criteria andDate_receivedNotIn(List<Date> values) {
            addCriterion("date_received not in", values, "date_received");
            return (Criteria) this;
        }

        public Criteria andDate_receivedBetween(Date value1, Date value2) {
            addCriterion("date_received between", value1, value2, "date_received");
            return (Criteria) this;
        }

        public Criteria andDate_receivedNotBetween(Date value1, Date value2) {
            addCriterion("date_received not between", value1, value2, "date_received");
            return (Criteria) this;
        }

        public Criteria andReply_dateIsNull() {
            addCriterion("reply_date is null");
            return (Criteria) this;
        }

        public Criteria andReply_dateIsNotNull() {
            addCriterion("reply_date is not null");
            return (Criteria) this;
        }

        public Criteria andReply_dateEqualTo(Date value) {
            addCriterion("reply_date =", value, "reply_date");
            return (Criteria) this;
        }

        public Criteria andReply_dateNotEqualTo(Date value) {
            addCriterion("reply_date <>", value, "reply_date");
            return (Criteria) this;
        }

        public Criteria andReply_dateGreaterThan(Date value) {
            addCriterion("reply_date >", value, "reply_date");
            return (Criteria) this;
        }

        public Criteria andReply_dateGreaterThanOrEqualTo(Date value) {
            addCriterion("reply_date >=", value, "reply_date");
            return (Criteria) this;
        }

        public Criteria andReply_dateLessThan(Date value) {
            addCriterion("reply_date <", value, "reply_date");
            return (Criteria) this;
        }

        public Criteria andReply_dateLessThanOrEqualTo(Date value) {
            addCriterion("reply_date <=", value, "reply_date");
            return (Criteria) this;
        }

        public Criteria andReply_dateIn(List<Date> values) {
            addCriterion("reply_date in", values, "reply_date");
            return (Criteria) this;
        }

        public Criteria andReply_dateNotIn(List<Date> values) {
            addCriterion("reply_date not in", values, "reply_date");
            return (Criteria) this;
        }

        public Criteria andReply_dateBetween(Date value1, Date value2) {
            addCriterion("reply_date between", value1, value2, "reply_date");
            return (Criteria) this;
        }

        public Criteria andReply_dateNotBetween(Date value1, Date value2) {
            addCriterion("reply_date not between", value1, value2, "reply_date");
            return (Criteria) this;
        }

        public Criteria andFlagIsNull() {
            addCriterion("flag is null");
            return (Criteria) this;
        }

        public Criteria andFlagIsNotNull() {
            addCriterion("flag is not null");
            return (Criteria) this;
        }

        public Criteria andFlagEqualTo(Integer value) {
            addCriterion("flag =", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotEqualTo(Integer value) {
            addCriterion("flag <>", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThan(Integer value) {
            addCriterion("flag >", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("flag >=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThan(Integer value) {
            addCriterion("flag <", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThanOrEqualTo(Integer value) {
            addCriterion("flag <=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagIn(List<Integer> values) {
            addCriterion("flag in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotIn(List<Integer> values) {
            addCriterion("flag not in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagBetween(Integer value1, Integer value2) {
            addCriterion("flag between", value1, value2, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("flag not between", value1, value2, "flag");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}